package com.sevattal.service.leaves;


/*
 * @EnableFeignClients  谁需要调用其他微服务，就添加该注解
 * @EnableTransactionManagement 开启事务，使service配置的Transaction注解生效
 * @EnableCaching 开启redis 自动缓存注解
 * */

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/*
* 由于common service_base 有引入redis启动
* 而本模块不使用redis部分所以要把redis的自动加载给去除掉
* */
@SpringBootApplication(exclude = {RedisAutoConfiguration.class})
@EnableDiscoveryClient
@ComponentScan({"com.sevattal"})
@EnableTransactionManagement
//@EnableCaching
public class SevattalLeavesApplication {

    public static void main(String[] args) {
        SpringApplication.run(SevattalLeavesApplication.class,args);
    }
}
